<style>
.nav {
  height: 25px;
}
.nav a {
  color: #000; 
  font-weight: bold; 
  font-size: 13px;
}
.arrow {
  width: 20px;
  text-align: center;
  color: #aaa;
}
.last {
  height: 25px;
  color: #333; 
  font-size: 13px;
}
</style>
<?php if (count($nav) == 0) { ?>
<div style="height: 10px;" id="<?php echo LAST_NAV; ?>"></div>
<?php } else { ?>
<div style="padding-left: 25px; text-align: left; font: 12px Trebuchet MS;">
  <table cellPadding="0" cellSpacing="0" style="<?php echo ((count($nav) > 0) ? 'padding: 0 0 0 0' : ''); ?>">
    <tr>
    <?php
    foreach ($nav as $idx => &$n) {
      if ($idx != (count($nav) - 1)) {
        echo "<td class=\"nav\"><a href=\"$n->link\">" . $n->name  . "</a><td class=\"arrow\">></td>";
      } else {
        echo "<td class=\"last\">" . $n->name  . "<span id=\"" . LAST_NAV . "\" style=\"margin-left: 5px\"></span></td>";
      }
    }
    ?>
    </tr>
  </table>
</div>
<?php } ?>
